package com.eazy.lkv2.core.web.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class ContextInterceptor extends BaseInterceptor  {

	private String contextPathName = "ctx";
	
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
		// 有些时候真的没法说。
//		String path = request.getContextPath();
//		String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
//		request.setAttribute(contextPathName, basePath);
		return true;
	}


}
